package com.source.boot01.config;

import com.source.boot01.intercopter.CustomMyIntercoptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author wengqy
 * @Date 2021/1/25
 */

@Configuration
public class Myconfig  implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new CustomMyIntercoptor());
    }
}
